package com.foreknow.demo5;

public class Animal {
    String name;
    int age;
    String sex;
    String color;
    public void eat(){
        System.out.println("eat...");
    }
    public void run(){
        System.out.println("run...");
    }
    public void jump(){
        System.out.println("jump...");
    }

    public static void main(String[] args) {
        Animal animal1 = new Animal();
        animal1.name = "geshan";
        animal1.age = 23;
        animal1.sex = "female";
        animal1.color = "yello";
        animal1.eat();
        animal1.jump();
        animal1.run();
        System.out.println(animal1.name+"--"+animal1.age+"--"+animal1.sex+"--"+animal1.color);
        Animal animal2 = new Animal();
        animal2.name = "tom";
        animal2.age = 25;
        animal2.sex = "female";
        animal2.color = "black";
        animal2.eat();
        animal2.jump();
        animal2.run();
        System.out.println(animal2.name+"--"+animal2.age+"--"+animal2.sex+"--"+animal2.color);

    }
}
